import Quill from 'quill'

let Block = Quill.import('formats/image')
class Audio extends Block {
  static create (value) {
    let node = super.create(value)
    node.setAttribute('controls', 'controls')
    node.setAttribute('style', 'margin-right: 20px;')
    return node
  }
}
Audio.blotName = 'audio'
Audio.className = 'ql-audio'
Audio.tagName = 'audio'

export default Audio
